package top.oauth2.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import top.oauth2.entity.security.Menu;

import java.util.List;

/**
 * @author xphu
 * @version 1.0
 * @date 2021/8/27 16:38
 */
@Mapper
public interface MenuMapper extends BaseMapper<Menu> {

    /**
     * 根据用户名查询权限
     * @param username 用户名
     * @return List<Menu>
     */
    List<Menu> getMenuListByUserName(@Param("username") String username, @Param("type") String type);

}
